Skip to content

Fix URI encoding of resolved imports#2628

Open
FnControlOption wants to merge 1 commit intozigtools:masterfrom
FnControlOption:uri
Open

Fix URI encoding of resolved imports#2628
FnControlOption wants to merge 1 commit intozigtools:masterfrom
FnControlOption:uri

Conversation

@FnControlOption
Copy link
Contributor

The initial URI is already percent encoded, so avoid re-encoding it.

For example, the space in Application Support is already encoded as %20. If we re-encode Application%20Support, the percent sign is encoded as %25. Then, we get Application%2520Support, which is wrong.

This fixes std imports on macOS when Zig is installed in

~/Library/Application Support/Code/User/globalStorage/ziglang.vscode-zig

Follow-up to c005812 / #2608

The initial URI is already percent encoded, so avoid re-encoding it.

For example, the space in `Application Support` is already encoded
as `%20`. If we re-encode `Application%20Support`, the percent sign
is encoded as `%25`. Then, we get `Application%2520Support`, which
is wrong.

This fixes `std` imports on macOS when Zig is installed in

    ~/Library/Application Support/Code/User/globalStorage/ziglang.vscode-zig

Follow-up to c005812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant